package com.ahoi.common.exception;

import com.ahoi.common.base.ResponseCode;

/**
 * author: ahoi
 * date: 2018/4/28 15:54
 * description: JcwRepairModelJoinYearDao
 */
public class BizException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public BizException(String message) {
        super(message);
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    public BizException(ResponseCode code) {
        super(code.getMessage());
    }

    public BizException(int codeStatus) {
        super(ResponseCode.getMsgByStatus(codeStatus));
    }

}
